package com.qfedu.edu.seckill.payservice.service;

import com.qfedu.edu.seckill.vo.PayVo;
import org.jdom.JDOMException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author xiaobobo
 * @title: IPayService
 * @projectName cd-java-2404-seckill-parent
 * @description: TODO
 * @date 2025/2/7  9:31
 */
public interface IPayService {

 /**
  * 支付
  * @param payVo
  */
 String pay(PayVo payVo) throws Exception;

 /**
  * 微信服务器的通知处理
  * @param req
  * @param resp
  */
 void weixinPayNotify(HttpServletRequest req, HttpServletResponse resp) throws IOException, JDOMException;

    /**
     * 通过订单号获取这个订单的支付状态
     * @param orderNo
     * @return
     */
    String getPayStatus(String orderNo);
}
